home *** CD-ROM | disk | FTP | other *** search
/ AMIGA-CD 2 / Amiga-CD - Volume 2.iso / ungepackte_daten / 1993 / 3 / 02 / automobil / bilanz / source / source.ampk / Bilanz.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-01  |  2.1 KB  |  78 lines

  1. /* Bilanz.h */
  2.  
  3. #include <intuition/intuition.h>
  4. #include <stdio.h>
  5. #include <stdlib.h>
  6. #include <string.h>
  7. #include <clib/graphics_protos.h>
  8. #include "Bilanz_protos.h"
  9.  
  10. #define PATH "Daten/"        /* path for data */
  11. #define FILENAME "Bilanz"    /* default filename */
  12. #define PRTNAME "PRT:"        /* outputname for printing */
  13. #define MAXLINE 15        /* number of entries on screen */
  14. #define FILTER 7        /* number of filters */
  15. #define INS 1            /* insert-modus for input */
  16. #define OVR 0            /* overwrite-modus for input */
  17.  
  18. unsigned char
  19.     file[120],    /* argument from start */
  20.     filename[200],
  21.     stopRead[] = {13,27,1,4,0},    /* chars for stopping input;
  22.                        see procedure ReadText */
  23.     filterflag[FILTER],    /* flag, if filter on or off */
  24.     prtname[71];        /* print to "PRT:" (default) */
  25.  
  26. struct Entry {
  27.   unsigned char area[21], title[41], date;
  28.   long          costs;
  29.   struct Entry  *next;
  30. };
  31.  
  32. struct Month {
  33.   long         income, expend;
  34.   short        number;        /* number of entries */
  35.   struct Entry *first;
  36. };
  37.  
  38. struct Year {
  39.   short        year;
  40.   long         income, expend;
  41.   struct Month month[13]; /* 0..12 : 0 isn't used */
  42.   struct Year  *next;
  43.   unsigned char filtername[FILTER][10], filtertext[FILTER][21];
  44. } *year, *firstyear;
  45.  
  46. struct Time {
  47.   short hour, min, sec, day, month, year;
  48.   unsigned char weekday[11];
  49. } time;
  50.  
  51. short curmonth, curyear,/* month/year of showed entries */
  52.       count,        /* start of output */
  53.       counter,        /* for timer */
  54.       status,        /* for timer */
  55.       modus,        /* of output */
  56.       entrygadgets,    /* 0 = off, 1 = on */
  57.       include,        /* = 1 show filter; = 0 show all except filter */
  58.       filter,        /* bits for filter */
  59.       number,        /* of filtered entries */
  60.       changeflag;    /* set if entries changed */
  61. long  yearincome, yearexpend,
  62.       monthincome, monthexpend; /* of filtered entries */
  63.  
  64. unsigned char Weekday[7][3] = {
  65.   "So","Mo","Di","Mi","Do","Fr","Sa" };
  66.  
  67. unsigned char Monthname[13][4] = { "   ",
  68.   "Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez" };
  69.  
  70. ULONG  class;
  71. USHORT code, qualifier;
  72. APTR   adr;
  73.  
  74. struct IntuiMessage  *message;
  75. struct Window        *win;
  76. struct RastPort      *RP;
  77. struct ViewPort      *VP;
  78.